/*************************************************************************
    > File Name: main-test.c
    > Author: ma6174
    > Mail: ma6174@163.com 
    > Created Time: Mon 24 Feb 2025 01:12:56 PM CST
 ************************************************************************/

#include<stdio.h>
#include<string.h>
#include<unistd.h>

int main(int argc, char* argv[])
{
	if(argc !=2)
	{
		printf("Usage: %s -[-a -b -c]\n",argv[0]);
		return 1;
	}

	if(strcmp(argv[1],"-a")==0)
	{
		printf("this is function1\n");
	}
	else if(strcmp(argv[1],"-b")==0)
	{
		printf("this is function2\n");
	}
	else if(strcmp(argv[1],"-c")==0)
	{
		printf("this is function3\n");
	}
	else if(strcmp(argv[1],"-d")==0)
	{
		printf("this is function4\n");
	}
	else
	{
		printf("not this function!\n");
	}
	return 0;
}
